package com.woniuxy.merchant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_message")
@ApiModel(value="ChatMessage对象", description="")
public class ChatMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发送者ID")
    private Integer senderId;

    @ApiModelProperty(value = "发送者姓名")
    private String senderName;

    @ApiModelProperty(value = "发送者头像")
    private String senderAvatar;

    @ApiModelProperty(value = "接收者ID")
    private Integer receiverId;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "发送时间")
    private String timestamp;

    @ApiModelProperty(value = "是否已读，0-未读，1-已读")
    private Integer isRead;

    @ApiModelProperty(value = "接收者姓名")
    private String receiverName;

    @ApiModelProperty(value = "接收者头像")
    private String receiverAvatar;

    @ApiModelProperty(value = "是否删除0-已删除1-未删除")
    private Integer isDelete;

    @ApiModelProperty(value = "角色id")
    private Integer roleId;



}
